import { PureComponent } from 'react';
import AppContext from '../../context';

class GrandSon extends PureComponent {
    constructor(props) {
        super(props);
    }

    static contextType = AppContext;

    render() {
        const value = this.context
        return (
            <div className="border">
                <p className="title">GrandSon</p>
                <h4>{JSON.stringify(value)}</h4>
            </div>
        )
    }
}

export default GrandSon;